package cn.ztydata.teachingsystem.heaven.web.dto;

import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 节点dto类
 * Created by chenxin on 2014/12/22.
 */
public class NodeDto {
    @NotNull
    @Min(value = 1, message = "被拖拽的节点ID不对")
    private Long id; //被拖拽的节点ID
    @NotNull
    @Min(value = 1, message = "参照节点ID不对")
    private Long opposite; //参照节点ID
    @NotNull
    @Range(min = 0, max = 2, message = "拖拽方式不合法")
    private Integer type; //拖拽方式

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOpposite() {
        return opposite;
    }

    public void setOpposite(Long opposite) {
        this.opposite = opposite;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
